to Dynamic Perimeter Sp
fun Number.toDynamicPerimeterSp(context: Context, qualifier: DpQualifier, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float
EN Converts an Int (base Sp) to a dynamically scaled Sp value (as Float).
Return
The scaled Sp value as Float.
Bulk / init: see toDynamicPerimeterSpPx for DimenCache.getBatch and DimenPerimeterSp.warmupCache.
Parameters
context
The Android context to access configuration and density.
qualifier
The screen qualifier used for scaling (sw, h, w).
font Scale
Whether to respect the system font scale.
inverter
The inverter logic to apply.
ignore Multi Windows
Whether to ignore multi-window mode.
apply Aspect Ratio
If true, applies the aspect-ratio multiplier.
custom Sensitivity K
Override for the AR sensitivity constant (null = library default).